﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace PhoneGap.Plugins.Camera
{
    public class DestinationType
    {
        public const int DATA_URL = 0;                // Return image as base64 encoded string         
        public const int FILE_URI = 1;
    }

    public class PictureSourceType
    {
        public const int PHOTOLIBRARY = 0;
        public const int CAMERA = 1;
        public const int SAVEDPHOTOALBUM = 2;
    }

    public class EncodingType
    {
        public const int JPG = 0;
        public const int PNG = 1;
    }

    public class CameraOptions
    {
        public CameraOptions()
        {
            this.Quality = 100;
            this.DestinationType = PhoneGap.Plugins.Camera.DestinationType.DATA_URL;
            this.SourceType = PictureSourceType.CAMERA;
            this.AllowEdit = false;
            this.EncodingType = PhoneGap.Plugins.Camera.EncodingType.JPG;
            this.TargetHeight = 480;
            this.TargetWidth = 640;
        }

        public int Quality { get; set; }
        public int DestinationType { get; set; }
        public int SourceType { get; set; }
        public bool AllowEdit { get; set; }
        public int EncodingType { get; set; }
        public int TargetWidth { get; set; }
        public int TargetHeight { get; set; }
    }
}
